package pl.edu.pb.wi.cookbook.form;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

public class NewCategoryForm {
    private Long parentCategoryId;
    @NotNull(message = "Wypełnij pole.")
    @Size(min = 4, max = 60, message = "Nazwa powinna mieć minimum 4 oraz maksymalnie 60 znaków.")
    private String name;
    @NotNull(message = "Wypełnij pole.")
    @Size(min = 15, max = 255, message = "Opis powinien mieć minimum 15 oraz maksymalnie 255 znaków.")
    private String description;
    @NotNull(message = "Wypełnij pole.")
    private Boolean canAddRecipes;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Boolean getCanAddRecipes() {
        return canAddRecipes;
    }

    public void setCanAddRecipes(Boolean canAddRecipes) {
        this.canAddRecipes = canAddRecipes;
    }

    public Long getParentCategoryId() {
        return parentCategoryId;
    }

    public void setParentCategoryId(Long parentCategoryId) {
        this.parentCategoryId = parentCategoryId;
    }

}
